
//+w20 +h34 +ua

#version 3.6;

global_settings {
  assumed_gamma 1.0
}

// ----------------------------------------

camera {
  location  <0.0, -1, -6.0>
  direction 1.5*z
  right     x*image_width/image_height
  look_at   <0.0, -1,  0.0>
}

background {rgb 1}

light_source {
  <0, 0, 0>            // light's position (translated below)
  color rgb <1, 1, 1>  // light's color
  translate <-30, 30, -30>
}

// ----------------------------------------


#declare hue = array[5*5*5];
#declare i = 0;
#declare R=0;
#while (R<=1) 
  #declare G=0;
  #while (G<=1)
    #declare B=0;
    #while (B<=1) 
      #declare hue[i] = <R,G,B>;
      #declare i=i+1;
      #declare B=B+0.25;
    #end
    #declare G=G+0.25;
  #end
  #declare R=R+0.25;
#end

#declare C=hue[frame_number - 1];

union {
 sphere {-0.15*y, 1.15}
 cone {-3*y,0,0,0.75}
  texture {
    pigment {rgb C}
    finish{
      specular 0.6
    }
  }
 scale <1,1,0.5> 
}

